import 'package:flutter/cupertino.dart';

import 'KaL_Config.dart';

// ignore: must_be_immutable
class FLCustomLoading extends StatelessWidget {
  FLCustomLoading({
    super.key,
    this.themeColor,
    this.title = '',
  });
  Color? themeColor;
  String? title;
  @override
  Widget build(BuildContext context) {
    String text = title ?? '';
    Color _themeColor = themeColor ?? KaL_Config.KaL_MainColor;

    return Container(
      height: 90,
      width: 90,
      decoration: const BoxDecoration(
          borderRadius: BorderRadius.all(Radius.circular(8))),
      child: Center(
        child: Column(
          children: [
            CupertinoActivityIndicator(
              color: _themeColor,
              radius: 15.0,
            ),
            Text(
              text,
              style: TextStyle(color: themeColor),
            ),
          ],
        ),
      ),
    );
  }
}
